package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class ScaleReportResult {

    @ApiModelProperty("序号")
    private int index;

    @ApiModelProperty("进厂门")
    private String enterTheDoor;
    @ApiModelProperty("出厂门")
    private String goOut;
    @ApiModelProperty("磅单编码")
    private String weightNo;

    @ApiModelProperty("派车单号")
    private String truckingNo;

    @ApiModelProperty("计划单号")
    private String plannedNo;

    @ApiModelProperty("入厂日期")
    private LocalDateTime factoryInTime;

    @ApiModelProperty("承运商")
    private String shipmentSellerName;

    @ApiModelProperty("出厂日期")
    private LocalDateTime factoryOutTime;

    @ApiModelProperty("车牌号")
    private String carNumber;

    @ApiModelProperty("客户名称")
    private String companyName;

    @ApiModelProperty("物料名称")
    private String productName;

    @ApiModelProperty("排放阶段")
    private int dischargeStage;

    @ApiModelProperty("排放")
    private String emissions;

    @ApiModelProperty("仓库名称")
    private String warehouseName;

    @ApiModelProperty("仓库人员")
    private String wuserName;

    @ApiModelProperty("毛重")
    private BigDecimal mWeight;

    @ApiModelProperty("皮重")
    private BigDecimal pWeight;

    @ApiModelProperty("净重")
    private BigDecimal weighbridgeWeight;

    @ApiModelProperty("结算量")
    private BigDecimal originalWeight;

    @ApiModelProperty("水分")
    private BigDecimal moisture;

    @ApiModelProperty("水分扣重")
    private BigDecimal moistureDeduction;

    @ApiModelProperty("原发数")
    private BigDecimal netWeight;

    @ApiModelProperty("初称时间")
    private LocalDateTime cdatetime;

    @ApiModelProperty("回称时间")
    private LocalDateTime hdatetime;

    public BigDecimal getmWeight() {
        if ("".equals(mWeight) || mWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return mWeight;
    }

    public void setmWeight(BigDecimal mWeight) {
        this.mWeight = mWeight;
    }

    public BigDecimal getpWeight() {
        if ("".equals(pWeight) || pWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return pWeight;
    }

    public void setpWeight(BigDecimal pWeight) {
        this.pWeight = pWeight;
    }

    public BigDecimal getWeighbridgeWeight() {
        if ("".equals(weighbridgeWeight) || weighbridgeWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return weighbridgeWeight;
    }

    public void setWeighbridgeWeight(BigDecimal weighbridgeWeight) {
        this.weighbridgeWeight = weighbridgeWeight;
    }

    public BigDecimal getNetWeight() {
        if ("".equals(netWeight) || netWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }
}
